home *** CD-ROM | disk | FTP | other *** search
Text File | 1997-06-28 | 552 b | 31 lines | [TEXT/CWIE] |
- // ScreenLoop.h
-
- #ifndef ScreenLoop_h
- #define ScreenLoop_h
-
- #ifndef GraphicsDeviceLoop_h
- #include "GraphicsDeviceLoop.h"
- #endif
-
- class ScreenLoop: private GraphicsDeviceLoop
- {
- private:
- GraphicsDeviceLoop device;
-
- void Advance();
-
- public:
- ScreenLoop();
-
- bool Finished() const { return device.Finished(); }
- bool Unfinished() const { return device.Unfinished(); }
-
- void operator++();
- void operator++(int) { operator++(); }
-
- GraphicsDeviceObject operator*() const { return *device; }
- // Sorry, no operator->().
- };
-
- #endif
-